package com.fy.oa.zc.menu.checker;

import com.fy.oa.zc.menu.manager.FyReportMenuAccessManager;
import com.seeyon.ctp.menu.check.AbstractMenuCheck;

/**
 * 审批时长报表查询
 * 
 * @author Administrator
 *
 */
public class FyReportMenuChecker extends AbstractMenuCheck {

	// private final static String AUDIT_TIME = "1";
	// private final static String AUDIT_TIME_SET = "2";
	// private final static String FORM_QUERY = "3";
	// private final static String FORM_QUERY_SET = "4";

	private FyReportMenuAccessManager fyReportMenuAccessManager;

	/**
	 * 菜单类型
	 */
	private String menuType;

	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}

	public void setFyReportMenuAccessManager(FyReportMenuAccessManager fyReportMenuAccessManager) {
		this.fyReportMenuAccessManager = fyReportMenuAccessManager;
	}

	@Override
	public boolean check(long memberId, long loginAccountId) {
		return fyReportMenuAccessManager.haveAccess(String.valueOf(memberId), menuType);
	}

}
